package com.example.design01.Service;

import com.example.design01.Bean.StaffBean;
import com.example.design01.Dao.StaffMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StaffServiceImpl implements StaffService{


    @Autowired
    private StaffMapper staffMapper;

    @Override
    public List<StaffBean> checkAll() {
        return staffMapper.checkAll();
    }

    @Override
    public StaffBean checkById(String id) {
        return staffMapper.checkById(id);
    }

    @Override
    public int addStaff(StaffBean staffBean) {
        return staffMapper.addStaff(staffBean);
    }

    @Override
    public int updateStaff(StaffBean staffBean) {
        return staffMapper.updateStaff(staffBean);
    }

    @Override
    public int deleteStaff(String id) {
        return staffMapper.deleteStaff(id);
    }
}
